﻿using Summer.IService;
using Summer.Model;
using Summer.Model.Attribute;
using Summer.Model.core;
using System;
using System.Collections.Generic;
using System.Text;

namespace Summer.Service.custom
{
    public class TestService:ITestService
    {
        public string Get()
        {
            //NLogHelper.logger.Info("测试 Test-Get0");
            return "获取 测试";
        }

        public string GetName(string name)
        {
            return "name:" + name;
        }

        /// <summary>
        /// 验证账号信息
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public bool IsValid(LoginRequestDTO req)
        {
            if(req.Username=="admin" && req.Password == "123456")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
